package com.yuyou.fn.portal.repository;

import com.yuyou.fn.portal.entity.AdConfig;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface AdConfigRepository extends MongoRepository<AdConfig,Long> {
    List<AdConfig> findByAreaTeamId(Long areaTeamId, Sort sort);

    List<AdConfig> findByAreaTeamIdAndPageAndPosition(Long areaTeamId, String page, String position);
}
